<?php
include_once "Resume.php";

use Prototype\Resume;
/** 获取原型模式实体对象 */
$r = new Resume("原型模式");
$r->setPersonalInfo('男', 25);
$r->setWorkExperience("2000-2010", "XX公司");

$a = $r->clone();
$a->setPersonalInfo('女', 26);
$a->setWorkExperience("2010-2020", "AA公司");

$r->display();
$a->display();